package com.hksj.jetlinks.serialize;

import com.google.common.collect.Sets;
import java.util.Set;
import reactor.core.Disposable;

public interface Copier extends Disposable {
    void copy(Object source, Object target, Set<String> ignore, Converter converter);

    default void copy(Object source, Object target, String... ignore) {
        this.copy(source, target, Sets.newHashSet(ignore), FastBeanCopier.DEFAULT_CONVERT);
    }

    default void dispose() {
    }
}
